package cn.hanyx.test.collection;

/**
 * Demo
 *
 * @author hanyx
 * @date 2020/05/25
 */
public class Demo {
    public static void main(String[] args) {
        Fruit apple = new Apple();
        apple.map002.put("abc", "abc");
        Apple apple1 = new Apple();
        apple1.map002.put("abc", "abc");
        Fruit orange = new Orange();
        ((Orange) orange).test();
        System.out.println(apple.getMap());
        System.out.println(orange.getMap());
        // 父类中的共享数据在不同的子类对象中是独立存在的.
    }
}
